package com.weasel.weixin.commons.media;

import com.weasel.weixin.commons.CommonResponse;
import org.codehaus.jackson.annotate.JsonProperty;

import java.util.List;

/**临时素材响应类
 * Created by Dylan on 2015/9/29.
 */
public class ForeverMediaListResponse extends CommonResponse{

    @JsonProperty("total_count")
    private int totalCount;

    @JsonProperty("item_count")
    private int itemCount;

    private List<Item> item;

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getItemCount() {
        return itemCount;
    }

    public void setItemCount(int itemCount) {
        this.itemCount = itemCount;
    }

    public List<Item> getItem() {
        return item;
    }
    public void setItem(List<Item> item) {
        this.item = item;
    }

    public static class Item{

        @JsonProperty("media_id")
        private String mediaId;
        private String name;
        @JsonProperty("update_time")
        private String updateTime;
        private String url;

        public String getMediaId() {
            return mediaId;
        }

        public void setMediaId(String mediaId) {
            this.mediaId = mediaId;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getUpdateTime() {
            return updateTime;
        }

        public void setUpdateTime(String updateTime) {
            this.updateTime = updateTime;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }
    }


}
